<template>
  <div style="height:100%;display:flex;align-items:center;justify-content:center">
    <span style="line-height:100%;font-size:30px">
      {{text}}, {{timeitv}} 秒后将回到主页面
    </span>
  </div>
</template>

<script>
  export default {
    name: 'page-error',
    data() {
      return {
        text: 'sorry, 页面已丢失~',
        timeitv:5,
      }
    },
    created() {
      var itv = setInterval(() => {
        this.timeitv --
        if (this.timeitv <= 0) {
          this.$router.push({path:'/'})
          clearInterval(itv)
        }
      }, 1000)
    }
  }
</script>

<style lang="scss" scoped>
 
  
</style>
